using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ShopPowerTemplate.Entities;

namespace ShopPowerTemplate.Services
{
    public abstract class Service : IDisposable
    {
        public IEntitiesDB EntitiesDB { get; set; }

        public Service(IEntitiesDB entitiesDB)
        {
            EntitiesDB = entitiesDB;
        }

        public virtual void Dispose()
        {
            EntitiesDB.Dispose();
        }
    }
}
